trigger LeadTrigger on Lead (before insert, before update) 
{
   if(!LeadDedupeHelper.IsRecursive())
    {
    Lead oldObj;
    Lead newObj;

    ID localAdvertiserRecordTypeID = RecordTypeHelper.GetRecordTypeID('Lead', 'Local Advertiser');
            
    for (Integer i = 0; i < Trigger.new.size(); i++)        
    {
        oldObj = Trigger.isInsert ? null : Trigger.old[i];
        newObj = Trigger.new[i];

        if(Trigger.isBefore)
        {        
                    if (localAdvertiserRecordTypeID == newObj.RecordTypeId)
            {
                if (Trigger.isInsert || (Trigger.isUpdate && oldObj.Phone != newObj.Phone)) // Disable this line for first time inital load                      
                    newObj.CleanPhoneText__c = SilCustomerHelper.CreatePhoneNumberHash(newObj.Phone);
                                }
        }
    
    }
    }   
}